<?php

declare(strict_types=1);

namespace App\Fastapp\Model;

use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $account_type 
 * @property int $type 消息类型
 * @property int $object_type 数据类型1链接2视频3分享4文章
 * @property int $object_id 关联数据
 * @property int $sort 排序
 * @property string $url 链接
 * @property array $title 标题
 * @property array $image 封面
 * @property array $desc 描述
 * @property array $content 内容
 * @property string $remark 备注
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 
 */
class Message extends MineModel
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'message';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'account_type', 'type', 'object_type', 'object_id', 'sort', 'url', 'title', 'image', 'desc', 'content', 'remark', 'created_at', 'updated_at', 'deleted_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'account_type' => 'integer', 'type' => 'integer', 'object_type' => 'integer', 'object_id' => 'integer', 'sort' => 'integer', 'title' => 'array', 'image' => 'array', 'desc' => 'array', 'content' => 'array', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
